/******************************************************************************
 * Name    : ep21.cc
 * Date    : 01-13-2015
 * Author  : Sylvain Nieuwlandt -- nicholas.rush.developper@gmail.com
 *****************************************************************************/

#include <Controllers/MainWindow/SplashScreenController.hpp>
#include <Controllers/MainWindow/MainWindowController.hpp>

#include <kino/wrapper/KiString.hpp>

#define LOGGER_PATH "ressources/nr1.nrlog"

/**
 * Entry point of  the application.
 *
 * Show the splash screen, load the global components and then launch the 
 * main window.
 */
int main() {
  SplashScreenController splashController;
  MainWindowController mainWindowController;

  KiString exeDir = KiSystem::getExecutableDirectory();
  KiLogger::initialize(*exeDir.append(LOGGER_PATH));
  
  splashController.showAndLoadComponents();

  mainWindowController.showWindow();

  KiLogger::shutdown();
  return 0;
}
